<?php /* Smarty version 2.6.18, created on 2008-06-12 23:41:55
         compiled from admin/Websetup_menu_list.html */ ?>

<div id="div_menu_add">
<form method="POST" action="?controller=admin_menu&action=menucreate">
	<h1>添加新菜单</h1>
	
	<table>
		<tr>
			<td>菜单名称：</td>
			<td><input id="title_add" name="title" type="text" size="40" /></td>
		</tr>
		<tr>
			<td>控制器类：</td>
			<td>
				<select id="select_perGroup_add">
					<option>请选择控制器</option>
					<?php $_from = $this->_tpl_vars['perGroupList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['oneGroup']):
?>
					<option value="<?php echo $this->_tpl_vars['oneGroup']['permission_group_id']; ?>
"><?php echo $this->_tpl_vars['oneGroup']['aliasname']; ?>
(<?php echo $this->_tpl_vars['oneGroup']['permission_group_name']; ?>
)</option>
					<?php endforeach; endif; unset($_from); ?>
				</select>*
			</td>
		</tr>
		<tr>
			<td>方　　法：</td>
			<td>
				<select id="select_permission_add" name="permission_name">
					<option>请选择</option>
				</select>*
			</td>
		</tr>
		<tr>
			<td>其他参数：</td>
			<td><input id="args_add" name="args" type="text" size="40" /></td>
		</tr>
		<tr>
			<td>上级菜单：</td>
			<td>
				<select id="parent_menu_add" name="parent_id">
					<option value="0">ROOT</option>
					<?php $_from = $this->_tpl_vars['menuList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['onemenu']):
?>
						<option value="<?php echo $this->_tpl_vars['onemenu']['menu_id']; ?>
"><?php echo $this->_tpl_vars['onemenu']['levelstr']; ?>
 <?php echo $this->_tpl_vars['onemenu']['title']; ?>
</option>
					<?php endforeach; endif; unset($_from); ?>
				</select>
			</td>
		</tr>
		<tr>
			<td></td>
			<td><input type="submit" value="创建菜单项"></td>
		</tr>
	</table>
</form>
</div>

<div id="div_menu_update">
<form method="POST" action="?controller=admin_menu&action=menuupdate">
	<h1>更新菜单</h1>
	<table>
		<tr>
			<td>菜单名称：</td>
			<td>
				<select id="menu_id_update" name="menu_id">
					<option>请选择</option>
					<?php $_from = $this->_tpl_vars['menuList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['onemenu']):
?>
						<option value="<?php echo $this->_tpl_vars['onemenu']['menu_id']; ?>
" title="<?php echo $this->_tpl_vars['onemenu']['title']; ?>
" controller="<?php echo $this->_tpl_vars['onemenu']['controller']; ?>
" action="<?php echo $this->_tpl_vars['onemenu']['action']; ?>
" args="<?php echo $this->_tpl_vars['onemenu']['args']; ?>
" parent_id="<?php echo $this->_tpl_vars['onemenu']['parent_id']; ?>
"><?php echo $this->_tpl_vars['onemenu']['levelstr']; ?>
 <?php echo $this->_tpl_vars['onemenu']['title']; ?>
</option>
					<?php endforeach; endif; unset($_from); ?>
				</select>
			</td>
		</tr>
		<tr>
			<td>菜单名称：</td>
			<td><input id="title_update" name="title" type="text" size="40" /></td>
		</tr>		
		<tr>
			<td>控制器类：</td>
			<td><input id="controller_update" name="controller" type="text" size="40" /></td>
		</tr>
		<tr>
			<td>方　　法：</td>
			<td><input id="action_update" name="action" type="text" size="40" /></td>
		</tr>
		<tr>
			<td>其他参数：</td>
			<td><input id="args_update" name="args" type="text" size="40" /></td>
		</tr>
		<tr>
			<td>上级菜单：</td>
			<td>
				<select id="parent_menu_update" name="parent_id">
				</select>
			</td>
		</tr>
		<tr>
			<td></td>
			<td><input type="submit" value="更新菜单项"> <span class="green">注意：错误的控制器或方法名可能导致权限判断失效</span></td>
		</tr>
	</table>
</form>
</div>

<div id="div_menu_remove">
<form method="POST" action="?controller=admin_menu&action=menuremove">
	<h1>删除菜单</h1>
	<table>
		<tr>
			<td>菜单名称：</td>
			<td>
				<select id="menu_id_remove">
					<option>请选择</option>
					<?php $_from = $this->_tpl_vars['menuList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['onemenu']):
?>
						<option value="<?php echo $this->_tpl_vars['onemenu']['menu_id']; ?>
"><?php echo $this->_tpl_vars['onemenu']['levelstr']; ?>
 <?php echo $this->_tpl_vars['onemenu']['title']; ?>
</option>
					<?php endforeach; endif; unset($_from); ?>
				</select>
				<input id="button_menu_remove" type="button" value="删除此菜单">
			</td>
		</tr>
	</table>
</form>
</div>